Miami Heat guard Tyler Johnson (8) and Toronto Raptors forward OG Anunoby (3) fight for control of the ball during the second half of an NBA basketball game, Wednesday, Dec. 26, 2018, in Miami. Toronto defeated Miami 106-104. (AP Photo/Joel Auerbach)
Miami Heat guard Tyler Johnson (8) and Toronto Raptors forward OG Anunoby (3) fight for control of the ball during the second half of an NBA basketball game, Wednesday, Dec. 26, 2018, in Miami. Toronto defeated Miami 106-104. (AP Photo/Joel Auerbach) Credit: ap — Joel Auerbach

Miami — Kawhi Leonard scored 30 points, Danny Green’s 3-pointer with 22.7 seconds left put Toronto ahead for good and the Raptors improved the NBA’s best record to 26-10 by topping the Miami Heat, 106-104, on Wednesday night.

Green had 18 points and Fred VanVleet added 16 for the Raptors, who survived a wild fourth quarter that saw 12 lead changes and four ties. Miami had three shots on the game’s final possession, with Dwyane Wade and Justise Winslow missing 3s and Wade having a chance at a tip-in that wouldn’t fall.

Winslow scored 21 points for Miami, which saw its five-game winning streak snapped. Josh Richardson scored 17 and Hassan Whiteside scored 16 for Miami, which was 6-for-12 from the foul line — while Toronto was 19-for-23.

James Johnson and Tyler Johnson each scored 12 for the Heat, while Wade had 10. Pascal Siakam added 10 for the Raptors.

Pistons 106, Wizards 95

Detroit — Blake Griffin had 23 points and nine rebounds, Andre Drummond got his 10th straight double-double, and Detroit beat Washington.

Detroit had lost 9 of 11 but used a hot start in the third quarter to pull away. Drummond had 16 points and 11 rebounds, and Langston Galloway scored 22 points off the bench.

The Wizards lost for the eighth time in 10 games and are 4-16 on the road. John Wall had 21 points, eight assists and seven rebounds, and Bradley Beal scored 21 points.

Suns 122, Magic 120 (ot)

Orlando, Fla. — Devin Booker scored 35 points and T.J. Warren added 24 points, including all four Phoenix points in overtime, to lead the Suns.

Kelly Oubre Jr. scored had 19 points and Josh Jackson added 10 for Phoenix, which has won five of its last seven games.

D.J. Augustin led Orlando with 27 points and six assists. Nikola Vucevic had 22 points and 13 rebounds, and Terrence Ross scored 18 points off the bench. Orlando has lost four straight.

Phoenix outscored the Magic, 4-2, in overtime. Vucevic hit a jumper with 4:26 left in the extra period to account for Orlando’s only points on 1-for-10 shooting.

Timberwolves 119, Bulls 94

Chicago — Derrick Rose had 24 points and eight assists in just his second career game in the United Center against his former team, lifting Minnesota.

Karl-Anthony Towns had 20 points and 20 rebounds as the Timberwolves won their second straight on the road.

Rose, the top pick in the 2008 draft, played his first seven seasons in Chicago and was named the NBA’s most valuable player in 2011.

Pacers 129, Hawks 121

Atlanta — Thaddeus Young scored 21 points, Domantas Sabonis and Tyreke Evans each added 19, and Indiana won its third straight game.

The Pacers have won 10 of 12. Indiana coach Nate McMillan used nine players, eight of whom finished in double figures.

Kent Bazemore tied a career high with 32 points, John Collins added 21 points and 11 rebounds and Dewayne Dedmon had 18 points and a season-best 15 rebounds for the rebuilding Hawks, who had won three straight.

The Hawks, who have the league’s second-worst offense, stayed close by hitting 17 3-pointers.

Nets 134, Hornets 132 (2ot)

New York — Joe Harris made the tiebreaking layup with 3.4 seconds left in the second overtime and finished with a season-high 27 points as Brooklyn beat Charlotte.

The teams swapped mistakes over the final stretches of regulation and overtime, and Malik Monk made the biggest when he lost his dribble while the Hornets were trying to get a shot. Harris picked up the ball near midcourt and drove in for a layup. The Hornets got two cracks at a chance to tie it again — a clock malfunction necessitated time being put back on the clock — but Monk was well off on a last attempt.

Spencer Dinwiddie had 37 points and 11 assists for the Nets, who won for the ninth time in 10 games. Rondae Hollis-Jefferson finished with 16 points and 15 rebounds, and rookie Rodions Kurucs had 13 points and 12 boards.

Grizzlies 95, Cavaliers 87

Memphis, Tenn. — Marc Gasol had 20 points, nine rebounds and six assists to help Memphis beat Cleveland.

Kyle Anderson and Mike Conley added 15 points each, with Conley handing out eight assists. Garrett Temple and Jaren Jackson Jr. had 11 points each.

Cleveland dropped its fourth straight. Jordan Clarkson led the Cavaliers with 24 points off the bench, and rookie Collin Sexton had 16 points and six assists. Cedi Osman had 10 points.

Memphis led from the first possession. The Grizzlies were up 78-62 about midway through the fourth quarter, but Cleveland rallied to get within 86-82 on a drive by Osman with 1:19 left.

After Memphis’ timeout, Conley scored on an acrobatic layup and had a steal before he was fouled. When the Grizzlies point guard converted both free throws, the lead was back to 90-82, and the Grizzlies finished out their second straight win.

The Cavaliers missed their first 12 shots before Channing Frye converted a 3-pointer with 4:24 left in the first quarter. Seven turnovers only contributed to Cleveland’s misery. The Cavaliers were held to nine points in the first period – a season-low for any quarter.